<?php
/******************************************************************************/
define('WDK_PATH'	,	dirname(dirname(dirname(__FILE__))).'/');
/******************************************************************************/
require WDK_PATH.'core/UnitTestConf.php';
require dirname(__FILE__).'/Class.php';
define('NAME', str_replace(WDK_PATH.'helpers/', '', dirname(__FILE__)));
class UnitTest extends PHPUnit_Framework_TestCase
{
	public function testPut()
	{
		$ftp = Wdk::helper('Ftp');
		$ftp->login('file.ppuying.com', 'ppuyingfile', 'userpa55w0rd');
		$ftp->put('/home/nuz/test.txt', 'html/_files');
	}
	public function testGet()
	{
		$ftp = Wdk::helper('Ftp');
		$ftp->login('file.ppuying.com', 'ppuyingfile', 'userpa55w0rd');
		$ftp->get('html/_files/test.txt', '/home/nuz/');
	}
	public function testRemove()
	{
		$ftp = Wdk::helper('Ftp');
		$ftp->login('file.ppuying.com', 'ppuyingfile', 'userpa55w0rd');
		$ftp->remove('html/_files/test.txt');
	}
}
?>